<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"  xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="mall/advert/include::header"></head>
<link rel="stylesheet" type="text/css" href="/css/plugins/layui/layui.css"/>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>账号添加</h5>
                </div>
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="signupForm">
                        <input type="hidden" id="id" name="id" th:value="${soft.id}">

                        <div class="form-group">
                            <label class="col-sm-3 control-label">软件名称:</label>
                            <div class="col-sm-8">
                                <input id="softName" name="softName" class="form-control" type="text" th:value="${soft.softName}">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-3 control-label">跳转类型:</label>
                            <div class="col-sm-8">
                                <label class="radio-inline">
                                    <input type="radio" name="type" value="0" />运营商
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="type" value="1" />自阅
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="type" value="2" />自提
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="type" value="3" />游戏
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="type" value="4" />任务
                                </label>
                            </div>
                        </div>



                        <div class="form-group">
                            <label class="col-sm-3 control-label">软件下载地址:</label>
                            <div class="col-sm-8">
                                <input id="downUrl" name="downUrl" class="form-control" type="text" th:value="${soft.downUrl}">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-3 control-label">备用软件下载地址:</label>
                            <div class="col-sm-8">
                                <input id="downUrl2" name="downUrl2" class="form-control" type="text" th:value="${soft.downUrl2}">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-3 control-label">备注:</label>
                            <div class="col-sm-8">
                                <input id="remark" name="remark" class="form-control" type="text" th:value="${soft.remark}">
                            </div>
                        </div>


                        <div class="form-group text-center">
                            <div class="col-sm-8 col-sm-offset-2">
                                <button type="submit" class="btn btn-primary"><i class="fa fa-check"></i>提交</button>
                                <div class="btn btn-danger" onclick="closeDow()"><i class="fa fa-remove"></i> 关闭</div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="mall/advert/include::footer"></div>
<script type="text/javascript" src="/js/appjs/read/soft/edit.js"></script>
<script type="text/javascript" src="/js/plugins/layui/layui.js"></script>
<script type="text/javascript">
    function closeDow() {
        var index = parent.layer.getFrameIndex(window.name); // 获取窗口索引
        parent.layer.close(index);
    }
    layui.use('laydate', function(){
        var laydate = layui.laydate;
        laydate.render({
            elem: '#timestart'
            ,type: 'datetime'
        });

        laydate.render({
            elem: '#timeend'
            ,type: 'datetime'
        });
        laydate.render({
            elem: '#upStartTime' , type: 'datetime'
        });

        laydate.render({
            elem: '#upEndTime' , type: 'datetime'
        });
    })
</script>
</body>

</html>
